﻿using RollCall.ViewModel;
using System.Windows.Controls;

namespace RollCall.Pages
{
    /// <summary>
    /// Interaction logic for RollPage.xaml
    /// </summary>
    public partial class RollPage : Page
    {
        private readonly string _type;
        public RollPage(string type)
        {
            _type = type;
            InitializeComponent();
            Loaded += RollPage_Loaded;
        }

        private void RollPage_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            DataContext = new RollPageViewModel(NavigationService, _type);
        }

        private void buttonYes_Click(object sender, System.Windows.RoutedEventArgs e)
        {


        }
    }
}
